<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
    
	<form action="<%  request.getContextPath(); %>/mvctest/login.do" method="post">
		用户名：<input type="text" name = "username" value = "admin" /> </br>
		密&nbsp;&nbsp;码：<input type="password" name = "password" value = "1234" />
		&nbsp;&nbsp;<input type="submit" value = "登录" />
	</form>
  </body>
</html>
